#pragma once
#include "QuadTree.h"
#include "Information.h"
#include "Object.h"
#include "windows.h"
#include "Sprites.h"
#include "d3d9.h"
#include "d3dx9.h"
#define GRASS_W	35
#define GRASS_H	70
#define ITEMS_W		35
#define ITEMS_H		35
#define PIPE_W		70
#define PIPE_H		140
#define PIPE_M_H	105
class StaticObject :public Object
{
	
public:
	int							_posOld;
	bool						_check;
	int		_amountCoin;
	QuadTree*	_tree;
	static LPDIRECT3DTEXTURE9	_itemImage;
	StaticObject(int left,int top,int _kindOf_typeObj,int _typeBonus,QuadTree *_tree);
	~StaticObject();
	QuadTree* _quadTree;
	StaticObject(){};
	static void Init(){_itemImage=Sprites::LoadTexture("Images\\\Items.png",0);};
	void Draw(int VirtualLeft,int Style);
};